package com.otitan.la.forest.system.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.otitan.la.forest.system.dto.PermissionDTO;
import com.otitan.la.forest.system.entity.PermissionEntity;
import com.otitan.webapp.framework.basepro.model.DataResult;
import org.springframework.validation.BindingResult;

import java.util.List;

/**
 * 动作元素表
 *
 * @author jiacs
 * @email xxx
 * @date 2020-09-17 14:26:54
 */
public interface PermissionService extends IService<PermissionEntity> {
    /**
     * 新增
     *
     * @return
     */
    DataResult add(PermissionEntity permission, BindingResult bindingResult);

    /**
     * 批量删除
     *
     * @return
     */
    DataResult batchDelete(List<String> ids);

    /**
     * 修改
     *
     * @return
     */
    DataResult editor(PermissionEntity permission, BindingResult bindingResult);

    /**
     * 列表查询（分页）
     *
     * @return
     */
    DataResult findPageData(Long page, Long size, PermissionDTO permissionDTO);

    /**
     * 根据ID查询
     *
     * @return
     */
    DataResult findOne(String id);
}

